﻿<div ng-init="init()" style="height:100%;">

    <dl class="dl-horizontal">
        <dt>名称：</dt>
        <dd>{{sheet.name}}</dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>计划交割时间：</dt>
        <dd>{{sheet.planningDeliveryTime | date: 'yyyy-MM-dd'}}</dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>计划交割地址：</dt>
        <dd>{{sheet.planningDeliveryAddress}}</dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>付款方式：</dt>
        <dd>{{sheet.payMethodText}}</dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>成交规则：</dt>
        <dd>{{sheet.dealRuleText}}</dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>要求从业资格证书：</dt>
        <dd><span ng-show="{{sheet.requireCertificate}} == true" class="glyphicon glyphicon-ok"></span></dd>
    </dl>
    <dl class="dl-horizontal">
        <dt>需要数据销毁服务：</dt>
        <dd><span ng-show="{{sheet.needDataCleanup}} == true" class="glyphicon glyphicon-ok"></span></dd>
    </dl>
    <dl class="dl-horizontal" ng-show="{{sheet.needDataCleanup}} == true">
        <dt>数据销毁方式：</dt>
        <dd>{{sheet.cleanUpMethodText}}</dd>
    </dl>
    <dl class="dl-horizontal" ng-show="isLogin">
        <dt>总报价：</dt>
        <dd>{{sheet.offerTotalPrice}}</dd>
    </dl>
    <div class="ag-fresh" style="height:60%;" ag-grid="gridOptions"></div>
    <br />
    <div class="alert alert-danger" role="alert" ng-show="isLogin && hasDuplicate">发布过同样的报价。</div>
    <br />
    <div class="alert alert-danger" role="alert" ng-show="sendEmailSuccessfull">发送邮件成功！</div>
    <br/>
    <div class="alert alert-info" role="alert" ng-show="isLogin">报价发布后，不能修改。发布报价后，可以再发布新报价。发布新报价，必须和之前的不同。</div>

    <div class="form-group pull-right">
        <!--<button type="button" onclick="alert('xdfsf')" ng-click="">显示当前用户</button>-->
        <!--<button type="button" onclick="alert('Welcome!')">点击这里</button>-->
        <button class="btn btn-primary" ng-click="email()" ng-show="isLogin && !sendEmail">发信给平台</button>
        <button class="btn btn-primary" ng-disabled="sheetDetailForm.$invalid || hasDuplicate || !fillData" ng-click="save()" ng-show="isLogin && !isSelf">发布报价</button>
        <a href="#/" class="btn btn-primary">查看清单</a>
    </div>

    <br />
    <div class="form-group" ng-show="sendEmail && !sendEmailSuccessfull" style="width:500px;">
        <div>主题：<input style="width:80%" ng-model="topic" /></div>
        <div>
            内容：<textarea rows="6" style="width:80%; margin-top:20px;" ng-model="content"></textarea>
        </div>
        <div style="margin-top:20px;"><button class="btn btn-primary" ng-click="send(toId)">发送</button></div>
    </div>

</div>